﻿using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Mvc.Html;
using System.Web.Mvc.Resources;
using System.Web.Mvc.Ajax;
using System.Xml;
using System.Xml.Linq;


namespace trymvc.Controllers
{



    [HandleError]
    public class HomeController : Controller
    {

        public ActionResult Index()
        {
            ViewData["pagetitle"] = "it's home/index";
            return View(null, "default");
        }

    }

    public class DemoController : Controller
    {
        public ActionResult LayeredViews()
        {
            ViewData["pagetitle"] = "it's home/index";
            ViewData["filestructure"] =
                new XElement("ul",
                             new XElement("li", "sys/views",
                                          new XElement("ul",
                                                       new XElement("li", "layouts/layered.brail"),
                                                       new XElement("li", "demo/layeredviews.brail"),
                                                       new XElement("li", "demo/layeredsubviews.brail")))
                             ,
                             new XElement("li", "usr/views",
                                          new XElement("ul",
                                                      new XElement("li", "demo/layeredviews.brail")))

                    );

            return View(null, "layered");
        }
        public string ForEach()
        {
            return "Example not implemented yet";
        }

        public string XsltView()
        {
            return "Example not implemented yet";
        }

        public string Extensions()
        {
            return "Example not implemented yet";
        }

    }
}
